﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using YArchitech.LIB;
using YJKArchMethodLibrary.Utils;

namespace StairsModuleAndEdit.StairsEdit.Forms
{
	public partial class SplitStairsForm : EscBaseForm
	{
		public bool selMode
		{
			get
			{
				return this.isAll;
			}
		}

		public SplitStairsForm(string strText)
		{
			this.InitializeComponent();
			//base.Icon = Resource.YArchitechIcon;
			this.rdo_layer.Checked = true;
			this.m_strDlgText = strText;
			this.Text = strText;
			if (strText == "楼梯拆分")
			{
				this.label1.Text = "注：此功能不支持revit自身使用楼梯草图方\r\n式绘制的楼梯，楼梯进行解组之后可进行楼\r\n梯拆分命令";
				return;
			}
			if (strText == "楼梯合并")
			{
				this.label1.Text = "注：此功能不支持revit自身使用楼梯草图方\r\n式绘制的楼梯，楼梯进行解组之后可进行楼\r\n梯合并命令";
			}
		}

		private void btn_close_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		private void rdo_all_CheckedChanged(object sender, EventArgs e)
		{
			this.isAll = this.rdo_all.Checked;
		}

		private bool isAll;

		private string m_strDlgText = "";
	}
}
